module.exports.parseDotenvConfig   A
last analyzed

Complexity

Conditions 3
Paths 3

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 3
c 1
b 0
f 0
nc 3
dl 0
loc 9
rs 9.6666
nop 1
1
/**
2
 *
3
 * @param {Object} config
4
 * @return {Object}
5
 */
6
module.exports = {
7
  parseDotenvConfig: function(config) {
8
    const define = {};
9
    for (var key in config) {
10
      if (config.hasOwnProperty(key)) {
11
        define[key] = JSON.stringify(config[key]);
12
      }
13
    }
14
    return define;
15
  }
16
};
17